package com.menxin;

import java.util.stream.IntStream;

/**
 * Created by Menx on 2019/3/6.
 */
public class ArrayTest {

    public static void main(String[] args){
        Array<Integer> myArray = new Array<>(10);
        IntStream.range(0,10).forEach(myArray::addLast);
        IntStream.range(0,10).forEach(myArray::addLast);
        System.out.println(myArray);
        myArray.removeLast();
        System.out.println(myArray);
        myArray.removeFirst();
        System.out.println(myArray);
        myArray.addFirst(100);
        System.out.println(myArray);
        myArray.remove(10);
        System.out.println(myArray);
    }
}
